//
//  ComputerPart.m
//  访问者模式
//
//  Created by flannery on 2018/12/18.
//  Copyright © 2018年 flannery. All rights reserved.
//

#import "ComputerPart.h"

@implementation Keyboard
- (void)accept:(ComputerPartVisitor*)computerPartVisitor{
    [computerPartVisitor visitKeyboard:self];
}
@end

@implementation Monitor
- (void)accept:(ComputerPartVisitor*)computerPartVisitor{
    [computerPartVisitor visitMonitor:self];
}
@end

@implementation Mouse
- (void)accept:(ComputerPartVisitor*)computerPartVisitor{
    [computerPartVisitor visitMouse:self];
}
@end

@implementation Computer
- (void)accept:(ComputerPartVisitor*)computerPartVisitor{
    [computerPartVisitor visitComputer:self];
}
@end
